<?php
/**
 * 必须使用二维数组
 */
return [
    'auth_menu' => [
        [
            //父级id
            'pid'   => 0,
            //菜单名称
            'title' => '灰灰博客',
            //图标
            'icon'  => '',
            //类型：0=目录；1=菜单
            'type'  => 0,
            //地址url
            'node'  => '/app/huiblog',
            //排序（越小越靠前）
            'sort'  => 100
        ],
        [
            'pid'   => 0,
            'title' => '博客文章',
            'icon'  => 'layui-icon-transfer',
            'type'  => 1,
            'node'  => '/app/huiblog/blog/index',
            'sort'  => 100
        ],
        [
            'pid'   => 0,
            'title' => '博文分类',
            'icon'  => 'layui-icon-transfer',
            'type'  => 1,
            'node'  => '/app/huiblog/cate/index',
            'sort'  => 100
        ],
        [
            'pid'   => 0,
            'title' => '博客动态',
            'icon'  => 'layui-icon-list',
            'type'  => 1,
            'node'  => '/app/huiblog/action/index',
            'sort'  => 100
        ],
        [
            'pid'   => 0,
            'title' => '知识库管理',
            'icon'  => 'layui-icon-list',
            'type'  => 1,
            'node'  => '/app/huiblog/book/index',
            'sort'  => 100
        ],
        [
            'pid'   => '/app/huiblog',
            'title' => '基础模块',
            'icon'  => 'layui-icon-list',
            'type'  => 0,
            'node'  => '/app/huiblog/module',
            'sort'  => 100
        ],
        [
            'pid'   => '/app/huiblog/module',
            'title' => '博客设置',
            'icon'  => '',
            'type'  => 1,
            'node'  => '/app/huiblog/module/config',
            'sort'  => 100
        ],
        [
            'pid'   => '/app/huiblog/module',
            'title' => '导航设置',
            'icon'  => '',
            'type'  => 1,
            'node'  => '/app/huiblog/module/nav/index',
            'sort'  => 100
        ],
        [
            'pid'   => '/app/huiblog/module',
            'title' => '友情链接',
            'icon'  => '',
            'type'  => 1,
            'node'  => '/app/huiblog/module/links',
            'sort'  => 100
        ],
        [
            'pid'   => '/app/huiblog/module',
            'title' => 'SEO关键词',
            'icon'  => '',
            'type'  => 1,
            'node'  => '/app/huiblog/module/keywords',
            'sort'  => 100
        ]
    ],
    'auth_rule' => [
        [
            'type'    => 1,
            'node'    => '/app/huiblog/blog',
            'title'   => '博文管理',
            'is_auth' => 1,
        ],
        [
            'type'    => 2,
            'node'    => '/app/huiblog/blog/index',
            'title'   => '博文列表',
            'is_auth' => 1,
        ],
        [
            'type'    => 2,
            'node'    => '/app/huiblog/blog/add',
            'title'   => '添加',
            'is_auth' => 1,
        ],
        [
            'type'    => 2,
            'node'    => '/app/huiblog/blog/edit',
            'title'   => '编辑',
            'is_auth' => 1,
        ],
        [
            'type'    => 2,
            'node'    => '/app/huiblog/blog/delete',
            'title'   => '删除',
            'is_auth' => 1,
        ],
        [
            'type'    => 1,
            'node'    => '/app/huiblog/cate',
            'title'   => '分类管理',
            'is_auth' => 1,
        ],
        [
            'type'    => 2,
            'node'    => '/app/huiblog/cate/index',
            'title'   => '分类列表',
            'is_auth' => 1,
        ],
        [
            'type'    => 2,
            'node'    => '/app/huiblog/cate/add',
            'title'   => '添加',
            'is_auth' => 1,
        ],
        [
            'type'    => 2,
            'node'    => '/app/huiblog/cate/edit',
            'title'   => '编辑',
            'is_auth' => 1,
        ],
        [
            'type'    => 2,
            'node'    => '/app/huiblog/cate/delete',
            'title'   => '删除',
            'is_auth' => 1,
        ],
        [
            'type'    => 2,
            'node'    => '/app/huiblog/cate/status',
            'title'   => '更改状态',
            'is_auth' => 1,
        ],
        [
            'type'    => 1,
            'node'    => '/app/huiblog/action',
            'title'   => '博客动态管理',
            'is_auth' => 1,
        ],
        [
            'type'    => 2,
            'node'    => '/app/huiblog/action/index',
            'title'   => '博客动态列表',
            'is_auth' => 1,
        ],
        [
            'type'    => 2,
            'node'    => '/app/huiblog/action/add',
            'title'   => '添加',
            'is_auth' => 1,
        ],
        [
            'type'    => 2,
            'node'    => '/app/huiblog/action/edit',
            'title'   => '编辑',
            'is_auth' => 1,
        ],
        [
            'type'    => 2,
            'node'    => '/app/huiblog/action/delete',
            'title'   => '删除',
            'is_auth' => 1,
        ],
        [
            'type'    => 1,
            'node'    => '/app/huiblog/module/keywords',
            'title'   => '博客关键词管理',
            'is_auth' => 1,
        ],
        [
            'type'    => 2,
            'node'    => '/app/huiblog/module/keywords/index',
            'title'   => '关键词列表',
            'is_auth' => 1,
        ],
        [
            'type'    => 2,
            'node'    => '/app/huiblog/module/keywords/add',
            'title'   => '添加',
            'is_auth' => 1,
        ],
        [
            'type'    => 2,
            'node'    => '/app/huiblog/module/keywords/edit',
            'title'   => '编辑',
            'is_auth' => 1,
        ],
        [
            'type'    => 2,
            'node'    => '/app/huiblog/module/keywords/delete',
            'title'   => '删除',
            'is_auth' => 1,
        ],
        [
            'type'    => 1,
            'node'    => '/app/huiblog/module/config',
            'title'   => '博客配置管理',
            'is_auth' => 1,
        ],
        [
            'type'    => 1,
            'node'    => '/app/huiblog/module/config/index',
            'title'   => '配置列表',
            'is_auth' => 1,
        ],
        [
            'type'    => 2,
            'node'    => '/app/huiblog/module/config/edit',
            'title'   => '编辑',
            'is_auth' => 1,
        ],
        [
            'type'    => 1,
            'node'    => '/app/huiblog/module/nav',
            'title'   => '博客导航组管理',
            'is_auth' => 1,
        ],
        [
            'type'    => 2,
            'node'    => '/app/huiblog/module/nav/index',
            'title'   => '导航组列表',
            'is_auth' => 1,
        ],
        [
            'type'    => 2,
            'node'    => '/app/huiblog/module/nav/group_add',
            'title'   => '添加导航组',
            'is_auth' => 1,
        ],
        [
            'type'    => 2,
            'node'    => '/app/huiblog/module/nav/group_edit',
            'title'   => '编辑导航组',
            'is_auth' => 1,
        ],
        [
            'type'    => 2,
            'node'    => '/app/huiblog/module/nav/group_delete',
            'title'   => '删除导航组',
            'is_auth' => 1,
        ],
        [
            'type'    => 2,
            'node'    => '/app/huiblog/module/nav/nav_index',
            'title'   => '导航列表',
            'is_auth' => 1,
        ],
        [
            'type'    => 2,
            'node'    => '/app/huiblog/module/nav/nav_add',
            'title'   => '添加导航',
            'is_auth' => 1,
        ],
        [
            'type'    => 2,
            'node'    => '/app/huiblog/module/nav/nav_edit',
            'title'   => '编辑导航',
            'is_auth' => 1,
        ],
        [
            'type'    => 2,
            'node'    => '/app/huiblog/module/nav/nav_delete',
            'title'   => '删除导航',
            'is_auth' => 1,
        ],
        [
            'type'    => 2,
            'node'    => '/app/huiblog/module/nav/nav_sort',
            'title'   => '导航列表排序',
            'is_auth' => 1,
        ],
    ]
];
